<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="WEB-INF/template.xhtml">
    <ui:param name="page_title" value="Account"/>
    <h:form id="formAccount">
        <h:outputLabel id="lblAccountName" value="#{AccountControllerBean.accountName}" />
        <h:outputLabel id="lblChangePassword" value="Change password" />
        <h:outputLabel for="oldPassword" id="lblOldPassword" value="Old Password" />
        <h:inputSecret redisplay="false" value="#{AccountBackingBean.oldPassword}" id="oldPassword" />
        <p:message for="oldPassword" />
        <h:outputLabel for="newPassword" id="lblNewPassword" value="New Password" />
        <h:inputSecret redisplay="false" value="#{AccountBackingBean.newPassword}" id="newPassword" />
        <p:message for="newPassword" />
        <h:outputLabel for="confirmPassword" id="lblconfirmPassword" value="Confirm Password" />
        <h:inputSecret redisplay="false" value="#{AccountBackingBean.confirmPassword}" id="confirmPassword" />
        <p:message for="confirmPassword" />
        <h:commandButton value="OK" id="btnAddAccount" action="#{AccountControllerBean.changePassword()}" />
        <h:commandButton value="Remove Account" id="btnRemoveAccount" action="#{AccountControllerBean.removeAccount()}" />
    </h:form>
</ui:composition>